package com.gis3c.sys.entry.po;

import java.io.Serializable;
import java.util.Date;

public class Role implements Serializable {
	private String roleId;
    private String roleName;
    private String aliasName;
    private String description;
    private Boolean available = Boolean.FALSE;
    private Integer sortedNum;
    private Date createdTime;


    public Role() {}

    public Role(String roleName, String aliasName,String description, Boolean available,Integer sortedNum,Date createdTime) {
        this.roleName = roleName;
        this.aliasName = aliasName;
        this.description = description;
        this.available = available;
        this.sortedNum = sortedNum;
        this.createdTime = createdTime;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public Integer getSortedNum() {
        return sortedNum;
    }

    public void setSortedNum(Integer sortedNum) {
        this.sortedNum = sortedNum;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Role role = (Role) o;

        if (this.roleId != null ? !this.roleId.equals(role.roleId) : role.roleId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return this.roleId != null ? this.roleId.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleid=" + this.roleId +
                ", rolename='" + this.roleName + '\'' +
                ", description='" + this.description + '\'' +
                ", available=" + this.available +
                '}';
    }


}
